<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<p><a href="<?=$_SERVER["PHP_SELF"];?>?page=addroletype">Add a New Role Type</a></p>

<table border="0" cellpadding="0" cellspacing="0" class="app_table">
<tr class="app_mainrow">
    <td>
	<b>ID</b>
    </td>
    <td>
	<b>stringID</b>
    </td>
    <td>
	<b>Name</b>
    </td>
    <td>
	<b>Description</b>
    </td>
    <td>
	<b>Max Allowed</b>
    </td>
    <td>
	<b>Options</b>
    </td>
</tr>

<?
$aResult=$RoleAdmin->GetRoleTypes();

if (is_array($aResult))
{
    for ($i=0; $i<count($aResult);$i++)
    {
	?>
	<tr valign="top" class="app_row">
	    <td>
		<?=$aResult[$i]["ID"];?>
	    </td>
	    <td>
		<?=$aResult[$i]["stringID"];?>
	    </td>
	    <td>
		<?=$aResult[$i]["name"];?>
	    </td>
	    <td>
		<?=$aResult[$i]["description"];?>
	    </td>
	    <td>
		<?=$aResult[$i]["maxAllowed"];?>
	    </td>
	    <td>
		<a href="<?=$_SERVER["PHP_SELF"];?>?page=editroletype&ID=<?=$aResult[$i]["ID"];?>">Edit</a> |
		<a href="<?=$_SERVER["PHP_SELF"];?>?page=removeroletype&ID=<?=$aResult[$i]["ID"];?>" onclick="javascript: return confirm('Are you sure?');">Delete</a>
	    </td>
	</tr>
	<?
	
    }
    
}

?>

</table>



